﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
using EFEntities;
using ADONETDataServicesExtension.BLLUtils;

namespace BLL
{
    public abstract class ManagerBase : EmployeeBase
    {
        public ManagerBase()
        {
        }
        public ManagerBase(EFEntities.Employee employee)
            : base(employee)
        {
        }
        public ManagerBase(EmployeeBase employee)
            : base(employee)
        {
        }

        //private IEnumerable<Employee> _subEmployees;
        //[EFEntityProperty]
        //public IEnumerable<Employee> SubEmployees
        //{
        //    get
        //    {
        //        if (_subEmployees == null)
        //            _subEmployees = EFEmployee.SubEmployees.AsEnumerable().Select(e => new Employee(e));
        //        return _subEmployees;
        //    }
        //}
    }
}
